<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'user_mdy.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body bgcolor="#EEF2FB">
    <center>
	<div>
		<form action="userAction!UpUserInfo" method="post">
		<table width="100%" border="0">
		  <tr>
		    <td colspan="2" align="center">用户个人信息</td>
		  </tr>
		  <tr>
		    <td width="40%" height="40%" align="right">用户名：</td>
		    <td width="40%" height="40%" align="left">
		    	<input type="text" readonly="readonly" name="userName" value=${UserName.userName} />
		    </td>
		    <td width="20"></td>
		  </tr>
		  <tr>
		    <td width="40%" height="40%" align="right">邮箱：</td>
		    <td width="40%" height="40%" align="left">
		    	<input type="text" name="useremail" value=${UserName.useremail} />
		    </td>
		    <td width="20"></td>
		  </tr>
		  <tr>
		    <td width="40%" height="40%" align="right">生日：</td>
		    <td width="40%" height="40%" align="left">
		    	<input type="text" name="birthday" value=${UserName.birthday} >
			</td>			
			<td width="20"></td>
		  </tr>
		  <tr>
		    <td width="40%" height="40%" align="right">性别：</td>
		    <td width="40%" height="40%" align="left">
		    	<input type="text" name="sex" value=${UserName.sex} />
		    </td> 
		    <td width="20"></td>
		  </tr>
		  <tr>
		    <td width="40%" height="40%" align="right">用户类别：</td>
		    <td width="40%" height="40%" align="left">
		    	<input type="hidden" name="userId" value=${UserName.userId} >
		    	<input type="hidden" name="userpass" value=${UserName.userpass} >
		    	<input type="text" name="usertype" readonly="readonly" value=${UserName.usertype} >
			</td>
		    <td width="20"></td>
		  </tr>
		  <tr>
		    <td width="40%" height="40%" align="right">注册时间</td>
		    <td width="40%" height="40%" align="left">
		    	<input type="text" name="regdate" readonly="readonly" value=${UserName.regdate} >
		    </td>
		    <td width="20"></td>
		  </tr>
		  <tr>
		    <td width="40%" height="40%" align="right">上传头像：</td>
		    <td width="40%" height="40%" align="left">
		    	<input type="file" name="headImage" value=${UserName.headImage} >
		    </td>
		   	<td width="20"></td>
		  </tr>
		  <tr>
		    <td width="40%" height="40%" align="right">&nbsp;</td>
		    <td width="40%" height="40%" align="center"">
		    <input type="submit" value="提交">
		    </td>
		   	<td width="20"></td>
		  </tr>
		</table>
		</form>
	</div>
  </center>
  </body>
</html>
